<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'jiGou.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
		#top {
	width: 100%;
	text-align: center;
}

#top-title {
	width: 76%;
	font-size: 30px;
	display: inline-block;
	text-align: center;
	margin: 5px auto;
	background-color: #cee7ff;
}

#content table {
	margin: 0px auto;
	border: 2px solid #0080ff;
	text-align: center;
}

#content table th {
	background-color: #cee7ff;
}

#content table td, #content table th {
	border: 0.5px solid #42a0ff;
	height: 50px;
	width: 300px;
	text-align: center;
}
	</style>

  </head>
  
  <body>
  <div id="all">
  	<span id="address">>>当前位置:部门管理</span>
  	<br /><br /><br />
		<div id="top">
			<span id="top-title">部门管理</span>
		</div>
    <center>
    	<div id="content" style="width:900px;height:400px;">
            <hr style="border:1px" />
            <input type="button" onclick="location.href='/OAProject/admin_cg/zhk/addDepartinfo2.jsp?type=add'" value="添加部门" style="float:right"/>
            <br /><br />
            <table border="1" cellpadding="0" cellspacing="0" width="870px" >
            	<tr>
                	<th>部门名称</th>                    
                    <th>负责人</th>
                    <th>联系电话</th>
                    <th>移动电话</th>
                    <th>传真</th>
                    <th>修改</th>
                    <th>删除</th>
                </tr>
                <s:iterator value="%{#session.p.list}">
                		<tr>
                		<td><s:property value="%{departname}"/></td>
                		<td><s:property value="%{userinfo.username}"/></td>
                		<td><s:property value="%{connecttelno}"/></td>
                		<td><s:property value="%{connectmobiletelno}"/></td>
                		<td><s:property value="%{faxes}"/></td>
                		<td><sx:a href="departinfoactionone?d.departid=%{departid}"><img src="admin_cg/zhk/image/edit.gif"></sx:a></td>
                		<td><sx:a href="departinfoactiondelete?d.departid=%{departid}"><img src="admin_cg/zhk/image/delete.gif"></sx:a></td>                		
                	</tr>
                </s:iterator>
            </table><br><br>
             <sx:a  href="splitpage?type=1&page=1">首页</sx:a>
    	<sx:a  href="splitpage?type=1&page=%{#session.p.currentPage-1}">上一页</sx:a>
    	<sx:a  href="splitpage?type=1&page=%{#session.p.currentPage+1}">下一页</sx:a>
    	<sx:a  href="splitpage?type=1&page=%{#session.p.totalPage}">末页</sx:a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;【<s:property value="%{#session.p.currentPage}"/>/<s:property value="%{#session.p.totalPage}"/>】
            
    		</div>		
    		
    	</center>
		
  </div>
 
  </body>
</body>
  </body>
</html>
